﻿<%@ Page Title="Stubby Search" Language="C#" MasterPageFile="~/Web Pages/Site.Master" AutoEventWireup="true" 
    CodeBehind="Search.aspx.cs" Inherits="CS490_Capstone___Stubby.Page.Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" >
    
    <asp:Panel ID="content" CssClass="content" runat="server">
        <asp:Panel ID="topSpacer" runat="server">
        </asp:Panel>
        <asp:Panel ID="input" CssClass="input" runat="server" Visible="True">
            <asp:Label ID="searchLabel" CssClass="labelText" runat="server" Text="Find your event:">
            </asp:Label>
            <br />
            <asp:Label ID="labelSpacer" CssClass="clearText" runat="server" Text="----"></asp:Label>
            <asp:Table ID="inputTable" CssClass="motherTable" runat="server">
                <asp:TableRow>
                    <asp:TableCell>
                        <asp:TextBox ID="searchTerm" runat="server" Text="Event or Artist Name">
                        </asp:TextBox>
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" />
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell>
                        &nbsp;
                    </asp:TableCell>
                    <asp:TableCell CssClass="help">
                        <a onclick="getHelp(getMessage(1))">HELP&nbsp;</a>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
        </asp:Panel>
        <asp:Panel ID="output" CssClass="output" runat="server" Visible="False">
            <div id="searchResults" runat="server">
                <%-- the search results table will populate here --%>
            </div>
            <asp:Panel ID="searchResultsPanel" runat="server" CssClass="output"></asp:Panel>
            <asp:Panel ID="ProceedToCheckoutPanel" CssClass="output" runat="server">
                <asp:Button ID="btn_ProceedToCheckout" runat="server" Text="Proceed to Checkout" 
                    Enabled="True" Visible="False" onclick="btn_ProceedToCheckout_Click" />
            </asp:Panel>
        </asp:Panel>
     </asp:Panel>
</asp:Content>
